/*
 * connection.h
 *
 *  Created on: 05-12-2010
 *      Author: marseel
 */

#ifndef CONNECTION_H_
#define CONNECTION_H_

#include <string>
#include "client.h"
#include "server.h"

using namespace std;

class connection {
public:
	connection();
	virtual ~connection();
	void init();//TODO
	void send(string message);//TODO
	void setSPort(int port);//TODO port servera
	void setCPort(int port);//TODO port clienta
	void setIP(string ip);//TODO IP clienta
	string recv();//TODO
private:
	int SPort,CPort;
	string IP;
	client C;
	server S;
};

#endif /* CONNECTION_H_ */
